<template lang="html">
<div class="search">
      <p>
          <input type="text" placeholder="圣女果"><router-link to="/">取消</router-link>
      </p>
      <div>
          <p><img src="http://imgcdn.xuxian.com/upload/2016/08/31/20160831031537647.png">热门搜索</p>
          <p>
              <a href="#">木瓜</a>
              <a href="#">红提</a>
              <a href="#">菠萝</a>
              <a href="#">西柚</a>
              <a href="#">草莓</a>
              <a href="#">百香果</a>
              <a href="#">果汁</a>
              <a href="#">面包</a>
              <a href="#">牛油果</a>
              <a href="#">蓝莓</a>

          </p>
      </div>
</div>

</template>
<script>
  export default{
  }
</script>
<style lang="css">

    .search{
      width: 100%;
      height: 100%;
    }
    .search>p{
        width: 100%;
        height: 2.5rem;
        background: #ffc000;
        padding: 0.001rem;
    }
    .search>p input[type='text']{
      width: 80%;
      height: 1.5rem;
      background: #FFF6CE;
      margin: 0.5rem 0.5rem 0 1rem;
      border: 0;
      text-indent: 1rem;
    }
    .search>p a{
      line-height:2.5rem;
      font-size: 0.6rem;
    }
    .search div p:nth-of-type(1){
        margin: 1rem 0 0 1rem;
    }
    .search div p:nth-of-type(1) img{
        width: 1.2rem;
        height: 1.2rem;
        vertical-align: middle;
    }
    .search div p:nth-of-type(2){
        width: 90%;
        margin: 0 1.2rem;
        font-size: 0;
    }
    .search div p a{
      font-size: 0.8rem;
        display: inline-block;
        width: 3rem;
      height: 2rem;
      line-height: 2rem;
        text-align: center;
      background: #F5F5F5;
      margin:0.5rem .3rem 0 0;
      color: #828282;
    }
</style>
